from htmltestreport import HTMLTestReport
import unittest

from config import BASE_LJ
from common.init_log import Longgin_Init
import time

if __name__ == '__main__':
    Longgin_Init(BASE_LJ + '/log/int_log.log')
    stuie = unittest.defaultTestLoader.discover(BASE_LJ + '/scritps', 'test*')
    runner = HTMLTestReport(BASE_LJ + '/report/report.html', 'p2p登录注册测试报告',
                            time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time())))
    runner.run(stuie)
